﻿@using Demo.Model;
@using Pampa.MVC.Helpers;
@using Pampa.MVC.Models;
@using Pampa.MVC.Fluent.Common;

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/Layout.cshtml";

    Customer customer = ViewBag.Customer; 
}

<h2>Edit Customer</h2>

<div>

    @(Html.Pampa().EntityEditor(customer)
                  .ClientId("CustomerEdit")
                  .IncludeSaveButton()
                  .OnClientSuccess("alert('Saved!')")
                  .Config(new CustomerEditConfig()))

</div>
